<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmCreateRss">
        <f:view>
            <p:dialog id="dlgCreateRss"
                      widgetVar="wgCreateRss"
                      header="Create Rss"
                      draggable="true"
                      showEffect="fade"
                      hideEffect="clip">

                    <h:panelGrid columns="2">
                        <h:outputLabel value="Rss Title :" for="rssDesciption" />
                        <h:inputText maxlength="20" required="true" requiredMessage="Rss title is not null" id="rssDesciption" value="#{rssManagement.rss.rssDesciption}" title="RssDesciption" />


                        <h:outputLabel value="Rss Link:" for="rssLink" />
                        <h:inputText maxlength="100" required="true" requiredMessage="Rss Link is not null" id="rssLink" value="#{rssManagement.rss.rssLink}" title="RssLink" />

                    </h:panelGrid>


                    <f:facet name="footer">
                        <p:commandButton  id="btnCreateRss"
                                          value="Create"
                                          icon="ui-icon-check"
                                          style="margin:0"
                                          actionListener="#{rssManagement.create}"
                                          update=":frmManagerRss:dtManagerRss,
                                          :growl"
                                          oncomplete="RssManagementRequest(xhr, status, args)"
                                          />
                        <p:commandButton id="btnCancelCreateRss"
                                         value="Cancel"
                                         icon="ui-icon-check"
                                         style="margin:0"
                                         onclick="wgCreateRss.hide();"
                                         />
                    </f:facet>
            </p:dialog>
        </f:view>
    </h:form>
</html>
